package com.aiwei.tdjk.serviceManager.serviceType.entity;


import com.aiwei.tdjk.common.entity.BaseEntity;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

@Entity
@Table(name = "t_service_type")
@Data
public class ServiceType extends BaseEntity<Long> {
    /**
     * 服务类名称
     */
    @NotNull(message = "{not.null}")
    private String name;
    /**
     * 服务类型描述
     */
    @NotNull(message = "{not.null}")
    private String description;

    /**
     * 逻辑删除flag
     */
    private Boolean deleted = Boolean.FALSE;

    public ServiceType() {
    }
    public ServiceType(Long id) {
        setId(id);
    }
}